import { applyDecorators, Get, SetMetadata, UseGuards } from '@nestjs/common';
import { Custom } from './custom.decorator';
import { AaaGuard } from './aaa.guard';

/* 
合并装饰器
原理：在自定义装饰器里通过 applyDecorators 调用其他装饰器。
*/
export const Pro = (path: string | string[] , role: string) => {
    return applyDecorators(
        Get(path),
        Custom(role),
        UseGuards(AaaGuard)
    )
}
